package com.pvdnc.systemdebugger.testclient;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import com.pvdnc.systemdebugger.compacter.utils.AppContext;

public class TRDService extends Service {
    private static final String TAG="TRDService";

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        try {
            Thread.sleep(4500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        TripleResultDialog dialog=new TripleResultDialog(AppContext.getAppContext());
        dialog.setTitle("测试标题");
        dialog.setMessage("测试内容");
        int result= dialog.showDialog();
        Log.d(TAG,"dialog got its result:"+result);

        return START_STICKY;
    }
}
